<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
     <a th:href="@{toadd}">添加</a>
    <table border="1" cellspacing="0">
        <tr>
            <td>姓名</td>
            <td>性别</td>
            <td>地址</td>
            <td>生日</td>
            <td>操作</td>
        </tr>
        <tr th:each="emp:${list}">
            <td th:text="${emp.ename}">姓名</td>
            <td th:text="${emp.sex}">性别</td>
            <td th:text="${emp.address}">地址</td>
            <td th:text="${emp.birthday}">生日</td>
            <td>
              <a th:href="@{delete(eid=${emp.eid})}">删除</a>
              <a th:href="@{findByEid(eid=${emp.eid})}">编辑</a>
            </td>
        </tr>
    </table>

</body>
</html>